﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Evaluate/Evaluate.master" AutoEventWireup="true"
    CodeFile="BaseItemInput.aspx.cs" Inherits="Evaluate_BaseItemInput" StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" class="dialog" width="100%">
        <caption>
            <asp:Label ID="ActionTitle" runat="server"></asp:Label></caption>
        <tr>
            <td>
                <div class="line">
                    <span class="label">评估项目：</span>
                    <asp:DropDownList ID="BasesList" runat="server">
                    </asp:DropDownList>
                </div>
                <div class="line">
                    <span class="label">扣分原因：</span><asp:TextBox ID="Description" runat="server" Width="600px"></asp:TextBox></div>
                <div class="line">
                    <span class="label">扣分分值：</span><asp:TextBox ID="ItemScore" runat="server" Width="60"></asp:TextBox>
                    &nbsp;这里输入扣除的分数。</div>
                <div class="button">
                    <asp:HiddenField ID="hidbaseid" runat="server" />
                    <asp:Button ID="ButtonSave" runat="server" Text="保存" OnClick="ButtonSave_Click" />
                    <asp:Button ID="ButtonCancel" runat="server" Text="取消" OnClick="ButtonCancel_Click" /></div>
                <div class="line">
                    <asp:Label ID="Prompt" runat="server"></asp:Label></div>
            </td>
        </tr>
    </table>
    <asp:GridView ID="UserGrid" runat="server" DataKeyNames="ItemId" OnRowDataBound="UserGrid_RowDataBound"
        Width="100%" Caption="<span>基础数据成绩列表</span>" OnRowDeleting="UserGrid_RowDeleting"
        OnSelectedIndexChanging="UserGrid_SelectedIndexChanging">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 20px;">
                                <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                            </td>
                            <td style="width: 68px;">
                                项目名称：
                            </td>
                            <td>
                                <asp:Label ID="basename" runat="server" Text='<%# GetBaseName((int)Eval("BaseID")) %>'></asp:Label>
                            </td>
                            <td style="width: 36px;">
                                扣分：
                            </td>
                            <td style="width: 60px;">
                                <asp:Label ID="itemscore" runat="server" Text='<%# Eval("itemscore") %>'></asp:Label>
                            </td>
                            <td style="width: 60px;">
                                <asp:LinkButton ID="ButtonEdit" runat="server" CommandName="Select">编辑</asp:LinkButton>
                                <asp:LinkButton ID="ButtonDelete" runat="server" CommandName="Delete">删除</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                    <table style="width: 100%;">
                        <tr>
                            <td>
                                扣分原因：<asp:Label ID="Label5" runat="server" Text='<%# Eval("description") %>'></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <asp:HiddenField ID="ItemID" runat="server" />
</asp:Content>
